(function(d, w) { 'use strict'; var console = (w.console && w.console.log) ? w.console : { log : function(){} }; var __kwkpartnertag, __kwkpartnertagcook; var __kwkparams = {}; __kwkparams.ct = []; __kwkparams.lang = 0; __kwkparams.urls = ["img.metaffiliation.com/u/16/p77137.js","img.netaffiliation.com/u/16/p77137.js","ccv.colibrifestas.com.br/u/16/p77137.js"]; __kwkparams.tags = {"accueil":[{"nom":"Haus_Servicos_de_Internet","object":"script","attr":{"type":"text\/javascript","text":"(function(){var a=document.createElement('script');a.type='text\/javascript';a.async=true;a.src='\/\/rd.afftrack.pro\/ca.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"hausservicosdeinternet","onetrust_category_id":null},{"nom":"Enviou","object":"script","attr":{"type":"text\/javascript","text":"var CLIENT_TOKEN='26022018115645ZTT';(function(b){var a=b.createElement(\"script\");a.type=\"text\/javascript\";a.src=\"\/\/ca.enviou.com.br\/js\/ca-colibri-festas.js\";b.getElementsByTagName(\"head\")[0].appendChild(a)})(document);"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"enviou","onetrust_category_id":null},{"nom":"Hike","object":"script","attr":{"text":"var _mtm=window._mtm=window._mtm||[];_mtm.push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});(function(){var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];g.src='\/\/taghike.com\/js\/container_M55tejrU.js';s.parentNode.insertBefore(g,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":null,"onetrust_category_id":null}],"produit":[{"nom":"Haus_Servicos_de_Internet","object":"script","attr":{"type":"text\/javascript","text":"(function(){var a=document.createElement('script');a.type='text\/javascript';a.async=true;a.src='\/\/rd.afftrack.pro\/ca.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"hausservicosdeinternet","onetrust_category_id":null},{"nom":"Enviou","object":"script","attr":{"type":"text\/javascript","text":"var CLIENT_TOKEN='26022018115645ZTT';(function(b){var a=b.createElement(\"script\");a.type=\"text\/javascript\";a.src=\"\/\/ca.enviou.com.br\/js\/ca-colibri-festas.js\";b.getElementsByTagName(\"head\")[0].appendChild(a)})(document);"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"enviou","onetrust_category_id":null},{"nom":"Hike","object":"script","attr":{"text":"var _mtm=window._mtm=window._mtm||[];_mtm.push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});(function(){var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];g.src='\/\/taghike.com\/js\/container_jWfyZoHV.js';s.parentNode.insertBefore(g,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":null,"onetrust_category_id":null}],"categorie":[{"nom":"Haus_Servicos_de_Internet","object":"script","attr":{"type":"text\/javascript","text":"(function(){var a=document.createElement('script');a.type='text\/javascript';a.async=true;a.src='\/\/rd.afftrack.pro\/ca.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"hausservicosdeinternet","onetrust_category_id":null},{"nom":"Enviou","object":"script","attr":{"type":"text\/javascript","text":"var CLIENT_TOKEN='26022018115645ZTT';(function(b){var a=b.createElement(\"script\");a.type=\"text\/javascript\";a.src=\"\/\/ca.enviou.com.br\/js\/ca-colibri-festas.js\";b.getElementsByTagName(\"head\")[0].appendChild(a)})(document);"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"enviou","onetrust_category_id":null},{"nom":"Hike","object":"script","attr":{"text":"var _mtm=window._mtm=window._mtm||[];_mtm.push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});(function(){var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];g.src='\/\/taghike.com\/js\/container_xdarm1vY.js';s.parentNode.insertBefore(g,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":null,"onetrust_category_id":null}],"panier":[{"nom":"Haus_Servicos_de_Internet","object":"script","attr":{"type":"text\/javascript","text":"(function(){var a=document.createElement('script');a.type='text\/javascript';a.async=true;a.src='\/\/rd.afftrack.pro\/ca.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"hausservicosdeinternet","onetrust_category_id":null},{"nom":"Enviou","object":"script","attr":{"type":"text\/javascript","text":"var CLIENT_TOKEN='26022018115645ZTT';(function(b){var a=b.createElement(\"script\");a.type=\"text\/javascript\";a.src=\"\/\/ca.enviou.com.br\/js\/ca-colibri-festas.js\";b.getElementsByTagName(\"head\")[0].appendChild(a)})(document);"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"enviou","onetrust_category_id":null},{"nom":"Hike","object":"script","attr":{"text":"var _mtm=window._mtm=window._mtm||[];_mtm.push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});(function(){var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];g.src='\/\/taghike.com\/js\/container_AsP4sHt2.js';s.parentNode.insertBefore(g,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":null,"onetrust_category_id":null}],"fincommande":[{"nom":"Haus_Servicos_de_Internet","object":"script","attr":{"type":"text\/javascript","text":"(function(){var a=document.createElement('script');a.type='text\/javascript';a.async=true;a.src='\/\/rd.afftrack.pro\/ca.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"hausservicosdeinternet","onetrust_category_id":null},{"nom":"Enviou","object":"script","attr":{"type":"text\/javascript","text":"var CLIENT_TOKEN='26022018115645ZTT';(function(b){var a=b.createElement(\"script\");a.type=\"text\/javascript\";a.src=\"\/\/ca.enviou.com.br\/js\/ca-colibri-festas.js\";b.getElementsByTagName(\"head\")[0].appendChild(a)})(document);"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"enviou","onetrust_category_id":null}],"lead_inscription":[{"nom":"Haus_Servicos_de_Internet","object":"script","attr":{"type":"text\/javascript","text":"(function(){var a=document.createElement('script');a.type='text\/javascript';a.async=true;a.src='\/\/rd.afftrack.pro\/ca.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"hausservicosdeinternet","onetrust_category_id":null},{"nom":"Enviou","object":"script","attr":{"type":"text\/javascript","text":"var CLIENT_TOKEN='26022018115645ZTT';(function(b){var a=b.createElement(\"script\");a.type=\"text\/javascript\";a.src=\"\/\/ca.enviou.com.br\/js\/ca-colibri-festas.js\";b.getElementsByTagName(\"head\")[0].appendChild(a)})(document);"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"enviou","onetrust_category_id":null},{"nom":"Hike","object":"script","attr":{"text":"var _mtm=window._mtm=window._mtm||[];_mtm.push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});(function(){var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];g.src='\/\/taghike.com\/js\/container_.js';s.parentNode.insertBefore(g,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":null,"onetrust_category_id":null}],"lead_confirmation":[{"nom":"Haus_Servicos_de_Internet","object":"script","attr":{"type":"text\/javascript","text":"(function(){var a=document.createElement('script');a.type='text\/javascript';a.async=true;a.src='\/\/rd.afftrack.pro\/ca.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a,s);})();"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"hausservicosdeinternet","onetrust_category_id":null},{"nom":"Enviou","object":"script","attr":{"type":"text\/javascript","text":"var CLIENT_TOKEN='26022018115645ZTT';(function(b){var a=b.createElement(\"script\");a.type=\"text\/javascript\";a.src=\"\/\/ca.enviou.com.br\/js\/ca-colibri-festas.js\";b.getElementsByTagName(\"head\")[0].appendChild(a)})(document);"},"lang":"","cmp_ready":true,"axeptio_vendor_id":"enviou","onetrust_category_id":null}]}; __kwkparams.progid = 77137; __kwkparams.currency = "BRL"; __kwkparams.url_cross_device = "//ccv.colibrifestas.com.br/aff.php?maff=S512D511010"; __kwkparams.callbackprogram = function(){}; __kwkparams.iabCmpDetected = false; __kwkparams.iabvendors = []; __kwkparams.iabConsents = {}; __kwkparams.axeptioCmpDetected = false; __kwkparams.axeptioConsents = {}; __kwkparams.cmpWaitMs = 1000; __kwkparams.version = '2.16.5.1764163829'; __kwkpartnertag=function(){this.params={debug:null,kwktimer:null,tpluniq:"KwkWanTtWcCdth",language:"",objparams:{},hiddendiv:{},ptagparams:{},nonce:document.currentScript?.nonce||""};this.findscript();this.addhiddendiv();this.addclictime();this.loadptag()}; __kwkpartnertag.prototype={findscript:function(){this.kwkconsole("findscript");var a=d.getElementsByTagName("script");for(let b=0;bString.fromCodePoint(b)).join("");a=this.params.tpluniq+__kwkparams.progid+"_"+btoa(a);w.hasOwnProperty(a)?this.kwkconsole("add tags to div already run! STOP."):(w[a]=!0,this.buildparamslist(),this.writetags())},getpageparams:function(){this.kwkconsole("getpageparams");__kwkparams.callbackprogram();if(w.hasOwnProperty("ptag_params"))this.params.objparams= w.ptag_params,this.kwkconsole("w.ptag_params exist!");else if(this.kwkconsole("objparams"),this.kwkconsole(this.params.objparams),this.geturlparams(),!this.params.objparams.hasOwnProperty("zone"))throw"Param ZONE mandatory";},getlang:function(){__kwkparams.lang==0?this.kwkconsole("No checking language needed"):this.params.objparams.hasOwnProperty("language")&&this.params.objparams.language!=""?(this.params.language=this.params.objparams.language.toLowerCase(),this.kwkconsole("Language from ptag_params = "+ this.params.language)):(this.params.language=(w.navigator.userLanguage||w.navigator.language).toLowerCase().replace("-","_"),this.kwkconsole("Language from w.navigator.language = "+this.params.language))},geturlparams:function(){this.kwkconsole("geturlparams");var a=this.params.scriptnode.src;this.kwkconsole(a);var b=a.indexOf("?",7);if(b!=-1)for(a=a.substring(b+1).split("&"),this.kwkconsole(a),b=0;b0?c[f].onetrust_category_id:"C0004";if(__kwkparams.onetrustConsents.includes(g)||__kwkparams.onetrustConsents.includes(g.replace("C000","")))this.kwkconsole('OneTrust consent ok for part "'+c[f].nom+'"'+(c[f].onetrust_category_id?' (OneTrust category id "'+g+'")':"")),this.params.ptagparams.CONSENTMODE="cmp_yes";else if(this.kwkconsole('OneTrust NO consent for part "'+c[f].nom+ '"'+(c[f].onetrust_category_id?' (OneTrust category id "'+g+'")':"")+". IGNORE."),this.params.ptagparams.CONSENTMODE="cmp_no",!e)continue}else if(this.kwkconsole('Missing CMP context for part "'+c[f].nom+'"'+(c[f].iab_vendor_id?" (IAB vendor id "+c[f].iab_vendor_id+")":"")+(c[f].axeptio_vendor_id?' (Axeptio vendor id "'+c[f].axeptio_vendor_id+'")':"")+". IGNORE."),!e)continue;e=c[f].object;g=c[f].nom;var h=c[f].attr;this.params.nonce&&(h.nonce=this.params.nonce);var k=d.createElement(e);this.kwkconsole("Create tag "+ e+" for client "+g);var l=!1;for(a in h){e=="script"&&a=="src"&&(l=!0);var m=h[a];if(a=="text"||a=="src"||a.substring(0,5)=="data-"){var n=null;this.isfunction("filtre_"+g.toLowerCase()+"_"+b)&&(n="filtre_"+g.toLowerCase()+"_"+b,this.kwkconsole("Specific function "+n));m=this.replacetpl(m,n)}this.kwkconsole("add attribut "+a+", value = "+m);a=="text"?k[a]=m:k.setAttribute(a,m)}this.params.hiddendiv.innerHTML+="\n\n\x3c!-- Tag "+g+" --\x3e\n";l?d.getElementsByTagName("head")[0].appendChild(k):this.params.hiddendiv.appendChild(k)}}else this.kwkconsole("pas de tags pour la zone "+ b)}else this.kwkconsole("No ZONE param! STOP.")},checklanguage:function(a){a=a.toLowerCase();this.kwkconsole("checklanguage with tag_lang = "+a+" and this.params.language = "+this.params.language);return a==""||a==this.params.language||this.params.language.length==2&&a.substring(0,2)==this.params.language||a.length==2&&a==this.params.language.substring(0,2)?!0:!1},replacetpl:function(a,b){var c;for(c in this.params.ptagparams){var e=this.params.ptagparams[c];b!==null&&(e=w[b](e,c));var g=new RegExp("{"+ c+"}","g");a=a.replace(g,e)}return a},addimgcrossdevice:function(){if(this.params.ptagparams.hasOwnProperty("M_MD5")&&this.params.ptagparams.M_MD5!=""){var a=document.createElement("img");a.setAttribute("src",__kwkparams.url_cross_device+"&r="+(new Date).getTime()+"&altid="+this.params.ptagparams.M_MD5);a.setAttribute("width","0");a.setAttribute("height","0");a.setAttribute("id","kwankoCD");this.params.hiddendiv.appendChild(a)}},globalconsentmandatory:function(){var a=this.params.ptagparams.hasOwnProperty("GDPR")&& this.params.ptagparams.GDPR==1;this.kwkconsole("globalconsentmandatory:"+a);return a},globalconsenttimer:function(){this.kwkconsole("globalconsenttimer");var a=setInterval(function(){this.kwkconsole("setInterval...");this.checkkwgc()&&(this.kwkconsole("Consent OK!"),this.checkCmpConsent(this.addtagstodiv),this.kwkconsole("clearInterval!"),clearInterval(a))}.bind(this),1E3)},partialconsenttimer:function(){this.kwkconsole("partialconsenttimer");if(__kwkparams.tags.hasOwnProperty("consent"))var a=setInterval(function(){this.checkkwgc()&& (this.kwkconsole("Consent OK!"),this.execconsent(),this.kwkconsole("clearInterval!"),clearInterval(a))}.bind(this),1E3);else this.kwkconsole("No partial consent needed")},execconsent:function(){this.kwkconsole("execconsent");if(__kwkparams.tags.hasOwnProperty("consent")){var a;var b=__kwkparams.tags.consent;for(a=0;a{setTimeout(()=> {b(this.detectIABCmp()||this.detectAxeptioCmp()||this.detectOnetrustNonIABCmp())},typeof a=="number"?a:__kwkparams.cmpWaitMs)})},detectDidomiCmp:function(){return typeof w.Didomi==="object"?"didomi":!1},detectIABCmp:function(){return typeof w.__tcfapi==="function"?"iab":!1},detectAxeptioCmp:function(){return typeof w.axeptioSDK==="object"?"axeptio":!1},detectOnetrustNonIABCmp:function(){return typeof w.OneTrust=="object"&&typeof w.__tcfapi=="undefined"?"onetrust":!1},checkCmpConsent:function(a){this.params.objparams.hasOwnProperty("cmpWaitMs")&& typeof this.params.objparams.cmpWaitMs=="number"&&(this.kwkconsole("custom CMP waiting delay of "+this.params.objparams.cmpWaitMs+" catched."),__kwkparams.cmpWaitMs=this.params.objparams.cmpWaitMs);this.detectDidomiCmp()?(this.kwkconsole("Didomi CMP detected"),this.didomiConsentCallback(a)):this.detectIABCmp()?(this.kwkconsole("IAB CMP detected"),this.iabConsentCallback(a)):this.detectAxeptioCmp()?(this.kwkconsole("Axeptio CMP detected"),this.axeptioConsentCallback(a)):this.detectOnetrustNonIABCmp()? (this.kwkconsole("Onetrust non IAB CMP detected"),this.onetrustConsentCallback(a)):this.waitForCmp().then(b=>{this.kwkconsole("CMP detection after waiting "+__kwkparams.cmpWaitMs+"ms : "+b);if(b==="didomi")this.didomiConsentCallback(a);else if(b==="iab")this.iabConsentCallback(a);else if(b==="axeptio")this.axeptioConsentCallback(a);else if(b==="onetrust")this.onetrustConsentCallback(a);else this.kwkconsole("NO cmp detected despite "+__kwkparams.cmpWaitMs+"ms waiting time."),a.call(this)})},didomiConsentCallback:function(a){if(this.detectDidomiCmp()){var b= function(){var c;this.params.ptagparams.GDPR=1;this.params.ptagparams.GDPR_EMPTY_NON_IAB=1;this.params.ptagparams.GDPR_CONSENT=Didomi.getUserStatus().consent_string??"";for(c=0;c<__kwkparams.iabvendors.length;c++){var e=__kwkparams.iabvendors[c];var g=Didomi.getUserStatus().vendors.consent.enabled.includes(e)?"1":"0";__kwkparams.iabConsents[e]=g}this.kwkconsole("Fetched Didomi consents :");this.kwkconsole(__kwkparams.iabConsents);a.call(this)};w.didomiOnReady=w.didomiOnReady||[];w.didomiOnReady.push(function(c){this.kwkconsole("Didomi callback triggered."); __kwkparams.iabCmpDetected=!0;c.shouldUserStatusBeCollected()?(this.kwkconsole("Waiting for user consent choice."),c.on("consent.changed",function(){this.kwkconsole("Didomi consent change triggered.");b.call(this)}.bind(this))):(this.kwkconsole("User consent choice available, fetch vendor consents."),b.call(this))}.bind(this))}else this.kwkconsole("no Didomi object found. IGNORE check."),a.call(this)},iabConsentCallback:function(a){var b,c,e,g;this.detectIABCmp()?w.__tcfapi("addEventListener",2,(h, k)=>{if(!k)this.kwkconsole("__tcfapi callback FAILED to load tcData object"),this.addtagstodiv();else if(k&&h.eventStatus)if(__kwkparams.iabCmpDetected=!0,this.params.ptagparams.GDPR=1,this.params.ptagparams.GDPR_EMPTY_NON_IAB=1,this.params.ptagparams.GDPR_CONSENT=h.tcString?h.tcString:"",this.params.ptagparams.CONSENTMODE=typeof h.vendor.consents==="undefined"||typeof h.vendor.consents[702]==="undefined"?"unknown":h.vendor.consents[702]?"cmp_yes":"cmp_no",h.eventStatus==="cmpuishown")this.kwkconsole("CMP displayed, waiting for user action completion"); else{this.kwkconsole("CMP callback triggered for eventStatus "+h.eventStatus);c=h.vendor.consents;for(b=0;b<__kwkparams.iabvendors.length;b++)e=__kwkparams.iabvendors[b],g=typeof c[e]==="undefined"?"2":c[e]?"1":"0",__kwkparams.iabConsents[e]=g;__kwkparams.IABglobalPurposeConsent=h.purpose.consents&&typeof h.purpose.consents=="object"&&Object.keys(h.purpose.consents).length>0&&Object.values(h.purpose.consents).filter(function(l){return!l}).length==0;this.kwkconsole("purpose global consent : "+__kwkparams.IABglobalPurposeConsent); __tcfapi("removeEventListener",2,l=>{},h.listenerId);this.kwkconsole("Fetched IAB consents :");this.kwkconsole(__kwkparams.iabConsents);a.call(this)}}):(this.kwkconsole("no __tcfapi function found. IGNORE Tcf check."),a.call(this))},axeptioConsentCallback:function(a){if(this.detectAxeptioCmp()){var b=function(c){c.on("cookies:complete",function(e){this.kwkconsole("Axeptio cmp callback successfully triggered.");typeof e==="object"&&(__kwkparams.axeptioCmpDetected=!0,__kwkparams.axeptioConsents=e,this.params.ptagparams.GDPR= 1,this.params.ptagparams.GDPR_CONSENT="",this.kwkconsole("Fetched Axeptio consents :"),this.kwkconsole(e));a.call(this)}.bind(this),{replay:!0,once:!0})}.bind(this);w.axeptioSDK?(this.kwkconsole("Axeptio cmp callback direct call."),b(w.axeptioSDK)):(w._axcb=w._axcb||[],this.kwkconsole("Axeptio cmp callback added to queue."),w._axcb.push(b))}else this.kwkconsole("no axeptioSDK object found."),a.call(this)},onetrustConsentCallback:function(a){if(this.detectOnetrustNonIABCmp()){__kwkparams.onetrustCmpDetected= !0;__kwkparams.onetrustConsentChangeTriggered=!1;this.params.ptagparams.GDPR=1;this.params.ptagparams.GDPR_CONSENT="";var b=function(){__kwkparams.onetrustConsentChangeTriggered||(__kwkparams.onetrustConsentChangeTriggered=!0,__kwkparams.onetrustConsents=typeof w.OnetrustActiveGroups=="string"?w.OnetrustActiveGroups.split(",").map(c=>typeof c=="string"?c.trim():c).filter(c=>c):[],this.kwkconsole("Onetrust cmp callback successfully triggered."),this.kwkconsole("Fetched OneTrust group consents :"), this.kwkconsole(w.OnetrustActiveGroups),a.call(this))}.bind(this);typeof w.OneTrust.IsAlertBoxClosed!=="function"||w.OneTrust.IsAlertBoxClosed()?b():(this.kwkconsole("Onetrust cmp callback registered waiting for OnConsentChanged event."),OneTrust.OnConsentChanged(b))}else this.kwkconsole("no OneTrust object found."),a.call(this)},settimer:function(){this.kwkconsole("settimer");this.params.kwktimer=setInterval(()=>{d.readyState=="complete"&&this.runptag()},2E3)},removetimer:function(){this.params.kwktimer!== null&&(this.kwkconsole("removetimer"),clearInterval(this.params.kwktimer),this.params.kwktimer=null)},kwkconsole:function(a){this.isenvdebug()&&(typeof a==="object"?console.debug(a):console.log("KWK-PTAG-DEBUG - "+(new Date).toLocaleString()+" "+a))},isenvdebug:function(){if(this.params.debug===null){this.params.debug=!1;if(w.hasOwnProperty("ptag_params")&&w.ptag_params.hasOwnProperty("debug")&&w.ptag_params.debug==1)return console.log("Env debug is set from ptag params"),this.params.debug=!0,this.params.debug; (new __kwkpartnertagcook).readDebug()==1&&(console.log("Env debug is set from cookie"),this.params.debug=!0)}return this.params.debug},kwkrandom:function(a){var b;var c="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");a||=Math.floor(Math.random()*c.length);var e="";for(b=0;b